package com.yanqu.road.entity.activity.suitang.entity.battle;

import com.yanqu.road.entity.activity.suitang.data.CrossSuiTangCity;

public class CrossSuiTangBattleResult {

    private int winType; // 0：未开打，1：被攻击者赢，2：攻击者赢

    private CrossSuiTangBattlefieldTeam def;
    private long defHpReduce;
    private long defZhanGong;

    private CrossSuiTangBattlefieldTeam atk;
    private long atkHpReduce;
    private long atkZhanGong;

    private int winTimes;

    private long battleStartTime;
    private long battleEndTime;

    // 存个引用，方便返回给客户端
    private CrossSuiTangBattlefield battlefield;
    private CrossSuiTangCity city;

    public CrossSuiTangBattleResult() {
    }

    public CrossSuiTangBattleResult(CrossSuiTangBattlefield battlefield, CrossSuiTangCity city,
                                    int winType,
                                    CrossSuiTangBattlefieldTeam def, long defHpReduce, long defZhanGong,
                                    CrossSuiTangBattlefieldTeam atk, long atkHpReduce, long atkZhanGong,
                                    int winTimes) {
        this.battlefield = battlefield;
        this.city = city;
        this.winType = winType;
        this.def = def;
        this.defHpReduce = defHpReduce;
        this.defZhanGong = defZhanGong;
        this.atk = atk;
        this.atkHpReduce = atkHpReduce;
        this.atkZhanGong = atkZhanGong;
        this.winTimes = winTimes;
    }

    public CrossSuiTangBattlefield getBattlefield() {
        return battlefield;
    }

    public void setBattlefield(CrossSuiTangBattlefield battlefield) {
        this.battlefield = battlefield;
    }

    public CrossSuiTangCity getCity() {
        return city;
    }

    public void setCity(CrossSuiTangCity city) {
        this.city = city;
    }

    public int getWinTimes() {
        return winTimes;
    }

    public void setWinTimes(int winTimes) {
        this.winTimes = winTimes;
    }

    public int getWinType() {
        return winType;
    }

    public void setWinType(int winType) {
        this.winType = winType;
    }

    public CrossSuiTangBattlefieldTeam getDef() {
        return def;
    }

    public void setDef(CrossSuiTangBattlefieldTeam def) {
        this.def = def;
    }

    public long getDefHpReduce() {
        return defHpReduce;
    }

    public void setDefHpReduce(long defHpReduce) {
        this.defHpReduce = defHpReduce;
    }

    public long getDefZhanGong() {
        return defZhanGong;
    }

    public void setDefZhanGong(long defZhanGong) {
        this.defZhanGong = defZhanGong;
    }

    public CrossSuiTangBattlefieldTeam getAtk() {
        return atk;
    }

    public void setAtk(CrossSuiTangBattlefieldTeam atk) {
        this.atk = atk;
    }

    public long getAtkHpReduce() {
        return atkHpReduce;
    }

    public void setAtkHpReduce(long atkHpReduce) {
        this.atkHpReduce = atkHpReduce;
    }

    public long getAtkZhanGong() {
        return atkZhanGong;
    }

    public void setAtkZhanGong(long atkZhanGong) {
        this.atkZhanGong = atkZhanGong;
    }

    public long getBattleStartTime() {
        return battleStartTime;
    }

    public void setBattleStartTime(long battleStartTime) {
        this.battleStartTime = battleStartTime;
    }

    public long getBattleEndTime() {
        return battleEndTime;
    }

    public void setBattleEndTime(long battleEndTime) {
        this.battleEndTime = battleEndTime;
    }
}
